package com.xjlsoft.weather.enums;

/**
 * 请求类型枚举
 *
 */
public enum AvgFlagEnum {

	SUCCESS("1","已生成 平均数据"),
	FALSE("0","未生成平均数据");





    private final String value;

    private final String message;

    AvgFlagEnum(String value, String message) {
        this.value = value;
        this.message = message;
    }

    public String getValue() {
        return value;
    }

    public String getMessage() {
        return message;
    }

    public static String valueof(String value) {
        for (AvgFlagEnum e : AvgFlagEnum.values()) {
            if (e.getValue().equals(value)) {
                return e.getMessage();
            }
        }
        return null;
    }
    }
